const path = require("path");
module.exports = {
  css: {
    loaderOptions: {
      stylus: {
        'resolve url': true,
        'import': [
          './src/theme'
        ]
      }
    }
  },
  pluginOptions: {
    'cube-ui': {
      postCompile: true,
      theme: true
    }
  },
  publicPath: process.env.NODE_ENV === "production"
      ? "../addons/kuyuan_red/dist/app/"
      : "/",
  outputDir: path.dirname(__dirname) + "/kuyuan_red/dist/app/",
  indexPath: path.dirname(__dirname) + "/kuyuan_red/template/mobile/index.html"
}
